package com.emergency.examine.domain;

import com.emergency.base.domain.BaseEntity;

import javax.persistence.*;

//标准答案
@Entity
@Table(name = "ex_answer")
public class Answer extends BaseEntity {
    @OneToOne(targetEntity = Question.class, fetch = FetchType.LAZY)
    @JoinColumn(name = "question_id", referencedColumnName = "id")
    private Question question; //题目id 题目表，question

    private String answer;//标准答案

    private String norm;//评分标准

    public Question getQuestion() {
        return question;
    }

    public void setQuestion(Question question) {
        this.question = question;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public String getNorm() {
        return norm;
    }

    public void setNorm(String norm) {
        this.norm = norm;
    }
}
